﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using database.Entities;
using database.DAOImpl;

namespace database
{
    public partial class Control_Shop_modify : UserControl
    {
        public Control_Shop_modify()
        {
            InitializeComponent();
        }

        public Control_Shop_modify(Store mystore)
        {
            InitializeComponent();
            UserDAOImpl userDAO = new UserDAOImpl();
            textBox1.Text = mystore.StoreID.ToString();
            textBox2.Text = mystore.StoreName;
            textBox3.Text = mystore.Owner.ToString();
            textBox4.Text = mystore.Rent.ToString();
            textBox5.Text = mystore.Address;
        }
        private void shopSearch1_Load(object sender, EventArgs e)
        {

        }

        private void shopInfo1_Load(object sender, EventArgs e)
        {

        }
    }
}
